using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Blog_List - 博客 - 对象继承类
    /// </summary>
    [MetadataType(typeof(BlogListValidaTion))]
    public class BlogList : IBlogList<BlogList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class BlogListValidaTion
       {

     

        /// <summary>
        /// 博客ID
        /// </summary>
        [Display(Name ="博客ID")]
        [Required]
        [StringLength(36)]
        public String BlogId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 分类Id
        /// </summary>
        [Display(Name ="分类Id")]
        [StringLength(36)]
        public String TypeId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 作者Id
        /// </summary>
        [Display(Name ="作者Id")]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(50)]
        public String Tilte
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name ="内容")]
        [Required]
        [StringLength(36)]
        public String ContentId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name ="修改时间")]
        [Required]

        public DateTime EditTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BlogList.Status Status
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 是否关评
        /// </summary>
        [Display(Name ="是否关评")]
        [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.BooleanType IsCloseComm
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
